<?php
	// views/pagees/edit.ctp
?>
<div class="product form">
<?php echo $form->create('Pagee', array('controller' => 'pagees', 'action' => 'edit','type'=>'file'));?>
 	<h2><?php __('Sửa trang thông tin');?></h2>
 	<?php $session->flash();?>
 	<?php echo $form->hidden('id'); ?>
 	<div class="group">
		<div class="lf"><?php __('Tên trang');?></div>
		<div class="rf"><?php echo $form->input('title', array('label' => '', 'size'=>'50')); ?></div>
	</div>
	<div class="group">
		<div class="lf"><?php __('Thông tin');?></div>
		<div class="rf">
		<?php 
			
			echo $tinymce->input('content', array('label' => '','cols'=>'88','rows'=>'20', 'error' => false), array(
							            'theme' => 'advanced',
							            'plugins' => "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager",
								        'theme_advanced_buttons1' => "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
										'theme_advanced_buttons2'  =>  "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
										'theme_advanced_buttons3'  =>  "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
										'theme_advanced_toolbar_location'  =>  "top",
										'theme_advanced_toolbar_align'  =>  "left",
										'theme_advanced_statusbar_location'  =>  "bottom",
						          		'file_browser_callback' => 'fileBrowserCallBack',
										'theme_advanced_resizing'  => true
							        )); 
		?>
		</div>
	</div>
	<?php echo $form->input('id', array('type'=>'hidden'));?>
	<button type="submit" name="save"><?php echo __('Sửa',true) ?></button>
	<button name="Cancel" onclick="window.location='pagees/index'"><?php echo __('Hủy bỏ',true) ?></button>
<?php echo $form->end();?>
</div>